﻿using Volo.Abp.MongoDB;

namespace TenantManagement.MongoDB
{
    public static class TenantManagementMongoDbContextExtensions
    {
        public static void ConfigureTenantManagement(
            this IMongoModelBuilder builder)
        {
            Check.NotNull(builder, nameof(builder));

            builder.Entity<Tenant>(b =>
            {
                b.CollectionName = TenantManagementDbProperties.DbTablePrefix + "Tenants";
            });
        }
    }
}